# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-aiorun
_pkgname=aiorun
pkgver=2025.1.1
pkgrel=1
pkgdesc='Boilerplate for asyncio applications.'
arch=('any')
url='https://pypi.org/project/aiorun/#files'
license=('Apache')
depends=('python')
makedepends=('python-pip' 'python-build' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('18ccfbf9768028d32ee914a38a5dbd70e3461ad1f39039a5be51d6a9491483ec5f1399a01acd044c6349aa57305ef9db274ba24f85d56bdbd1260b13874a1cd4')

build() {
  cd "$_pkgname-$pkgver"

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd "$_pkgname-$pkgver"

  pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    $_pkgname
}

